<template>
    <StElDynamicForm :submit-props="{method: 'put',url:computedUrl.update,dataFormat: formDataFormat}" :helper-form="helperForm"
                     :datas="[computedUrl.get,{name: $route.query.name,group: $route.query.group,schedulerName: $route.query.schedulerName || null,schedulerInstanceId: $route.query.schedulerInstanceId||null}]"
                     :options="computedFormOptions" :origin-prop="{inline: true,labelWidth: '100px'}" :layout="[[8,8],[8,8],1,1,1,1,1,1,1,1,1,1,1,1]" :datas-format="datasFormatForUpdate">

    </StElDynamicForm>
</template>

<script>
    import ScheduleJobMixin from '../ScheduleJobMixin.js'

    export default {
        name: "ScheduleJobUpdate",
        mixins: [ScheduleJobMixin],
        data() {
            return {
              helperForm: {
                schedulerName: this.$route.query.schedulerName,
                schedulerInstanceId: this. $route.query.schedulerInstanceId,
                // 新增两个隐藏字段，数据会在初始化的自动填充值
                oldName: '',
                oldGroup: '',
              }
            }
        },
        methods: {

        }
    }
</script>

<style scoped>

</style>